<template>
  <!-- <a-form-item label="Username" name="username">
    <a-input :value="username" @input="$emit('update:username', $event.target.value)" />

  </a-form-item> -->

  <a-form-item>
    原生Input实现v-Model:<input
      :value="age"
      @input="$emit('update:age', ($event.target as HTMLInputElement).value)"
    /> </a-form-item
  >c
</template>
<script lang="ts" setup>
import { defineProps, defineEmits } from 'vue'
defineProps(['title', 'age', 'username'])

defineEmits(['update:age', 'update:username'])
</script>
